package com.hd.job;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.hd.commons.scan.SpringContextUtil;
import com.hd.entity.sys.User;
import com.hd.service.sys.UserService;
import com.hd.util.JsonUtil;

public class JobTask {
	private static final Logger log=LoggerFactory.getLogger(JobTask.class);
	//@Autowired
	//private UserService userService;
	//@Autowired
	//private FruitController fruitController;
	public void task() {
		log.info("定时开始");
		UserService userService=SpringContextUtil.getBean("userService");
		User user=userService.get("1");
		log.info("user={}",JsonUtil.toJson(user));
		//Fruit fruit=new Fruit();
		//Object dataGrid = fruitController.dataGrid(fruit, 1, 15, "id", "desc");
		//log.info(JsonUtil.toJson(dataGrid));
	}
	public static void main(String[] args) {
		log.info(JobTask.class.getName());
	}
}
